/**
 * Author: yuechao
 * 
 */
package com.wontube.core.dao;

import org.apache.ibatis.session.SqlSessionFactory;

import com.wontube.core.pub.ConnectionPoolManager;


public final class SessionWrapper {
	private ConnectionPoolManager poolManager;
	private SqlSessionFactory sessionFactory;

	public SessionWrapper(ConnectionPoolManager poolManager, SqlSessionFactory sessionFactory) {
		this.poolManager = poolManager;
		this.sessionFactory = sessionFactory;
	}

	/**
	 * @return the poolManager
	 */
	public ConnectionPoolManager getPoolManager() {
		return poolManager;
	}

	/**
	 * @param poolManager
	 *            the poolManager to set
	 */
	public void setPoolManager(ConnectionPoolManager poolManager) {
		this.poolManager = poolManager;
	}

	/**
	 * @return the sessionFactory
	 */
	public SqlSessionFactory getSessionFactory() {
		return sessionFactory;
	}

	/**
	 * @param sessionFactory
	 *            the sessionFactory to set
	 */
	public void setSessionFactory(SqlSessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
}
